package package06章_面向对象编程_基础._07encapsulation封装性.exer4.test1;/**
 * ClassName: Order
 * Package: package06章_面向对象编程_基础._07encapsulation封装性.exer4.test1
 * Description:
 *
 * @Author lys
 * @Create 2024/2/17 0:09
 * @Version 1.0
 */

/**
 * @description: TODO
 * @author lys
 * @date 2024/2/17 0:09
 * @version 1.0
 */
public class Order {
    //声明不同权限的属性
    private int orderPrivate;
    int orderDefault;
    public int orderPublic;

    //声明不同权限的方法
    private void methodPrivate(){

    }
    void methodDefault(){

    }
    public void methodPublic(){

    }

    public void test(){
        orderPrivate = 1;
        orderDefault = 2;
        orderPublic = 3;

        methodPrivate();
        methodDefault();
        methodPublic();
    }
}
